//
//  SCHomeLuckyBagViewModel.m
//  Mutal
//
//  Created by TonyStart on 16/10/19.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "SCHomeLuckyBagViewModel.h"
#import "SCNetworkTool.h"
@implementation SCHomeLuckyBagViewModel

-(void)requestHomeLuckBag:(void(^)(BOOL isLoad))finish{
    
    NSString *url = urlAndParamBuild(@"Appapi", @"luckybag", @"home");
    [[SCNetworkTool shared] requestDataWithMethod:GET url:url finish:^(id data, NSError *err,NSInteger code) {
        
        if (data) {
            _luckBagModel = [[SCHomeLuckBagModel alloc] initWithDict:data];
            finish(YES);
            return;
        }
        finish(NO);
        
    }];
}

@end
